<?php
class LibreriaSelecDatos_model extends CI_Model {

function __construct (){
    $this->load->database();
    parent::__construct();
}//fin function constructor

function selectCertificados($from,$where='',$select=''){
if($select!="") $this->db->select($select);
$query = $this->db->get_where($from,$where);
foreach ($query->result_array() as $row){

           $aux = $row['SEGAN_CERTIFICADO'];
           unset($row['SEGAN_CERTIFICADO']);
           $data[$aux]=$aux;
}
return $data;
}
function ingresarSiniestro($from,$insert=''){
if($insert!="") $this->db->insert('SEGAN_SINIESTRO', $insert);
return 1;
}

}
?>